ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX Namespace / DXUtil Class / Pin Method / Pin<T>(T[],Action<IntPtr>) Method
The type of the structure to pin.
The source array.
The pin action to perform on the pinned pointer.

In This Topic
    Pin<T>(T[],Action<IntPtr>) Method
    In This Topic
    Pins the specified source and call an action with the pinned pointer.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub Pin(Of T As {New, Struct})( _
       ByVal source() As T, _
       ByVal pinAction As System.Action(Of IntPtr) _
    ) 
    public static void Pin<T>( 
       T[] source,
       System.Action<IntPtr> pinAction
    )
    where T: new(), struct

    Parameters

    source
    The source array.
    pinAction
    The pin action to perform on the pinned pointer.

    Type Parameters

    T
    The type of the structure to pin.
    See Also